//
//  DetailsCell.m
//  LoveCar
//
//  Created by Du Bin on 15/5/29.
//  Copyright (c) 2015年 薛森鸿. All rights reserved.
//

#import "DetailsCell.h"

@implementation DetailsCell

- (void)dealloc
{
//    [_cookLabel release];
    [_detLabel release];
    [_detView release];
    [super dealloc];
}

- (instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}

- (void)createCell
{
    self.detView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 11, 20, self.contentView.frame.size.height-23)];
    [self.detView setBackgroundColor:[UIColor whiteColor]];
    [self.contentView addSubview:self.detView];
    [self.detView release];
    
    self.detLabel = [[UILabel alloc] initWithFrame:CGRectMake(60, 0, 100, self.contentView.frame.size.height)];
    [self.detLabel setBackgroundColor:[UIColor whiteColor]];
    [self.contentView addSubview:self.detLabel];
    [self.detLabel release];
    
//    self.cookLabel = [[UILabel alloc] initWithFrame:CGRectMake(220, 0, 150, self.contentView.frame.size.height)];
//    [self.cookLabel setBackgroundColor:[UIColor whiteColor]];
//    [self.contentView addSubview:self.cookLabel];
//    [self.cookLabel release];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
